import 'package:flutter/material.dart';

// 自定义Appbar
class HomeAppBar extends AppBar {
  HomeAppBar(BuildContext context)
      : super(
          title: Text('美食广场'),
          // 修改抽屉图标
          leading: Builder(builder: (ctx) {
            return IconButton(
                icon: Icon(Icons.drafts_outlined),
                onPressed: () {
                  Scaffold.of(context).openDrawer();
                });
          }),
        );
}
